
export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  column: [
    {
      label: "主键",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: "创建人",
      prop: "createUser",
      type: "select",
      dicUrl: "/api/blade-user/listAll",
      props: {
        label: "name",
        value: "id"
      }, addDisplay: false,
      editDisplay: false,
    },

    {
      label: "创建时间",
      prop: "createTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: "修改人",
      prop: "updateUser",
      type: "select",
      dicUrl: "/api/blade-user/listAll",
      props: {
        label: "name",
        value: "id"
      }, addDisplay: false,
      editDisplay: false,
    },
    {
      label: "修改时间",
      prop: "updateTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: "名称",
      prop: "name",
      type: "input",
      search: true
    },
    {
      label: "类别",
      prop: "category",
      type: "input",
    },
    {
      label: "标签",
      prop: "tag",
      type: "input",
      placeholder: '多个标签分号“;”分隔'
    },
    {
      label: "展示价格",
      prop: "price",
      type: "input",
      placeholder: '仅用于列表展示'
    },
    {
      label: "使用日期",
      prop: 'ticketDate',
      type: 'date',
      format: "yyyy-MM-dd",
      valueFormat: 'yyyy-MM-dd HH:mm:ss'
    },
    {
      label: "简介",
      prop: "introduction",
      type: "input",
    },
    {
      label: '状态',
      prop: 'status',
      type: 'radio',
      value: 1,
      dicData: [
        {
          label: "禁用",
          value: 0
        },
        {
          label: "启用",
          value: 1
        }
      ]
    },
    {
      label: '单次购票数',
      prop: 'num',
      type: 'number',
      value: 1,
      step: 1,
      min: 1,
      max: 999
    },
    {
      label: "封面",
      prop: "coverUrl",
      type: 'upload',
      listType: 'picture-img',
      dataType: 'string',
      action: '/api/blade-resource/oss/endpoint/put-file',
      propsHttp: {
        res: 'data',
        url: 'link',
      },
    },
    {
      label: "轮播图",
      prop: "scrollImages",
      type: 'upload',
      listType: 'picture-card',
      dataType: 'string',
      action: '/api/blade-resource/oss/endpoint/put-file',
      propsHttp: {
        res: 'data',
        url: 'link',
      },
      rules: [{
        required: true,
        message: "请上传封面图",
        trigger: "change"
      }]
    },
    {
      label: "详情",
      prop: "details",
      component: 'AvueUeditor',
      options: {
        action: '/api/blade-resource/oss/endpoint/put-file',
        props: {
          res: "data",
          url: "link",
        }
      },
      hide: true,
      minRows: 10,
      span: 24,
    },
  ]
}
